﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xaml;

namespace UIT.Controls.Template
{
    class TemplateContentLoader : XamlDeferringLoader
    {
        public override object Load(XamlReader xamlReader, IServiceProvider serviceProvider)
        {
            return new TemplateContent(xamlReader, (IXamlObjectWriterFactory)serviceProvider.GetService(typeof(IXamlObjectWriterFactory)), serviceProvider);
        }

        public override XamlReader Save(object value, IServiceProvider serviceProvider)
        {
            throw new NotImplementedException();
        }
    }
}
